<?php
require_once ('conn.php');
$msg='n';
$name =$_POST['name'];
$number=$_POST['number'];
$cCategory=$_POST['cCategory'];
$cCategoryName=$_POST['cCategoryname'];
$remark=$_POST['remark'];
$linkMans ="[]";
$cLevel=1;
$cLevelName ="零售网点";
$staffid =$_SESSION['userid'];
$sql ="INSERT INTO ci_contact(name,number,cCategory,cCategoryName,remark,linkMans,cLevel,cLevelName,staffid,disable)". "VALUES('$name','$number',$cCategory,'$cCategoryName','$remark','$linkMans',$cLevel,'$cLevelName',$staffid,1)";
if(mysql_query($sql)){
    $msg='y';
}
echo $msg;die;
?>